<% if logged_in? -%>
  <%= render :partial => 'course/rightbar' %>
<% end -%>
